package com.example.springboot.bean;

import java.io.Serializable;

/**
 * @program: supermarketparent
 * @description:
 * @author: MajorMKN
 * @create: 2019-10-26 16:51
 **/
public class Register implements Serializable {
    private static final long serialVersionUID = 1L;
    private int id;
    private  String phone;
    private  String email;
    private  String username;
    private  String password;
    /**
     * 状态：0代表未激活，1代表激活
     */
    private Integer status;



    /**
     * 利用UUID生成一段数字，发动到用户邮箱，当用户点击链接时
     * 在做一个校验如果用户传来的code跟我们发生的code一致，更改状态为“1”来激活用户
     */
    private String code;

//    public Register(int id, String phone, String mail, String username, String password) {
//        super();
//        this.id = id;
//        this.phone = phone;
//        this.mail = mail;
//        this.username = username;
//        this.password = password;
//    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
